﻿/*
 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
 */

#ifndef OPERATIONLOG_H
#define OPERATIONLOG_H

#include <QObject>
#include <QApplication>
#include <QDir>
#include <QMutex>
#include <QTextStream>
#include <QFile>
#include <QTextCodec>

class OperationLog {
public:
    OperationLog();
    ~OperationLog();

    void CloseFile();

    void RecordIntoFile();
    void RecordFile(QByteArray str);
    QString GetMsgFilePath() const;

    void SetBurnFileName(QString strFileName);
    void SetBurnStartTime(QString strSartTime);
    void SetBurnEndTime(QString strEndTime);
    void SetBurnComNum(QString strComNum);
    void SetBurnBinFile(QStringList strBinList);
    void SetBurnResult(int result);

private:
    QString burnFileName;
    QStringList binFileList;
    QString startTime;
    QString endTime;
    QString comName;
    unsigned int burnResult;

    QFile *file;
    QString filePath;
    QString fileStartPath;
};

#endif // OPERATIONLOG_H
